//
//  TableView.m
//  MVC|MVP|MVVM
//
//  Created by Guo Rui on 2017/11/15.
//  Copyright © 2017年 GR Harry. All rights reserved.
//

#import "TableView.h"

@implementation TableView

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    self.backgroundColor = [UIColor blueColor];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    NSLog(@"%s", __func__);
    
    CGFloat h = self.frame.size.height - 100;
    if (self.contentSize.height < h) {
        self.contentSize = CGSizeMake(self.frame.size.width, h);
    }
}
@end
